using System;
using System.Threading.Tasks;
using Acme.BookStore.StockManagement.Dtos.KuCunYuJing;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace Acme.BookStore.StockManagement.Services
{
    /// <summary>
    /// 库存预警应用服务接口
    /// </summary>
    public interface IKuCunYuJingAppService : IApplicationService
    {
        /// <summary>
        /// 获取库存预警分页列表
        /// </summary>
        /// <param name="input">查询条件</param>
        /// <returns>分页结果</returns>
        Task<PagedResultDto<KuCunYuJingDto>> GetListAsync(KuCunYuJingGetListInputDto input);

        /// <summary>
        /// 获取库存预警详情
        /// </summary>
        /// <param name="id">主键ID</param>
        /// <returns>库存预警</returns>
        Task<KuCunYuJingDto> GetAsync(int id);

        /// <summary>
        /// 创建库存预警
        /// </summary>
        /// <param name="input">库存预警</param>
        /// <returns>创建后的库存预警</returns>
        Task<KuCunYuJingDto> CreateAsync(KuCunYuJingDto input);

        /// <summary>
        /// 更新库存预警
        /// </summary>
        /// <param name="id">主键ID</param>
        /// <param name="input">库存预警</param>
        /// <returns>更新后的库存预警</returns>
        Task<KuCunYuJingDto> UpdateAsync(int id, KuCunYuJingDto input);

        /// <summary>
        /// 删除库存预警
        /// </summary>
        /// <param name="id">主键ID</param>
        /// <returns></returns>
        Task DeleteAsync(int id);
    }
} 